package com.hl233.common.config;

import com.hl233.common.constant.Constants;
import com.hl233.common.utils.SecurityUtils;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Bean;

/**
 * @author 张振强15065206763
 * @create 2024-09-24
 */
public class FeignTimerConfigInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header(Constants.DETAILS_USER_ID,SecurityUtils.getUserId()+"");
    }
}
